home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
64'er 1989 Janurary
/
64er_Magazin_89-01_1989_Markt__Technik_de_Side_C.d64
/
text hc
(
.txt
)
< prev
Wrap
Commodore BASIC
|
2022-10-26
|
1KB
|
41 lines
100 rem texthardcopy
110 zs=peek(53272) : rem zeichensatz ermitteln
120 b=1024 : rem startadresse des bildschirms
130 d$="c" : rem druckertyp
140 : rem "c" = commodore
150 : rem "a" = ascii
160 if zs=21 then open 1,4,0 : rem gross/grafik
170 if zs=23 then open 1,4,7 : rem klein/gross
180 if zs <> 21 and zs <> 23 then end : rem kein normaler zeichensatz
190 :
200 print#1,chr$(27);"@" : rem drucker initialisieren
210 print#1,chr$(27);chr$(108);chr$(10); : rem 10 spalten linker rand
220 :
230 for z=0 to 24
240 : for s=0 to 39
250 :
260 : m=b+z*40+s
270 : x = peek(m)
280 : if x>127 then x=x-128 : rem reverses zeichen -> normales zeichen
290 : if x>=32 and x<=63 then450: rem sonderzeichen
300 : if d$="a" then350: rem drucker-pruefung
310 : rem commodore
320 : if x>=64 and x<=95 then x=x+32 : goto450
330 : x=x+64
340 : goto450
350 : rem ascii
360 : if zs = 21 then420: rem zs-pruefung
370 : rem zs klein/gross
380 : if x<=31 then x=x+96 : goto450
390 : if x>=96 then x=32 : goto450: rem nicht druckbares zeichen
400 : goto450
410 : rem zs gross/grafik
420 : if x<=31 then x=x+64 : goto450
430 : x=32 : rem nicht druckbares zeichen
440 :
450 : print#1,chr$(x);
460 : next s
470 : print#1,chr$(13);
480 next z
490 close 1